package test.threads;

public class HelloThread extends Thread {

	public HelloThread(String threadName) {
		Thread.currentThread().setName(threadName);
	}

	public void run() {

		while (true) {

			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
			}

			System.out.println(Thread.currentThread().getName() + "\tHello, world!");
		}
	}
}
